#!/bin/bash

apt update
apt install -y vim curl
apt install -y git ninja-build iasl bzip2 meson
apt install -y g++-mingw-w64 mingw-w64 mingw-w64-tools mingw-w64-x86-64-dev nsis
apt install -y python3 python3-venv python3-sphinx
apt install -y python3-sphinx-rtd-theme

apt install -y pacman-package-manager
echo "[mingw64]" >> /etc/pacman.conf
echo "Include = /etc/pacman.d/mirrorlist.mingw" >> /etc/pacman.conf

mkdir -p /etc/pacman.d
echo "Server = https://mirrors.cloud.tencent.com/msys2/mingw/$repo/" >> /etc/pacman.d/mirrorlist.mingw

